import { React, useState } from 'react';

export function Button() {
    const [count, setCount] = useState(0);

    const handleClick = () => {
        setCount(count + 1);
        console.log(`Button clicked ${count + 1} times`);
    };

    return (
        <button onClick={handleClick}>Click me</button>
    );
}
